<template>
  <div class="a">
    <p class="b">{{ title }}</p>
    <div class="content">
      <div class="left"></div>
      <div class="right">
        <div class="text" v-for="item in list" :key="item.value">
          {{ item.label }}
        </div>
        <span class="buttom-line"></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    list: {
      type: Array,
      required: true
    },
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="less" scoped>
.a {
  .b {
    margin: 10px;
  }
  .content {
    display: flex;
    .left {
      flex: 1;
    }
    .right {
      flex: 5;
      display: flex;
      flex-wrap: wrap;
      margin-right: 20px;
      padding-bottom: 14px;
      .text {
        flex: 1;
        min-width: 70px;
        height: 30px;
        margin: 0 18px 15px 0;
        border: 1px solid #ddd;
        border-radius: 3px;
        line-height: 32px;
        text-align: center;
        font-size: 12px;
        color: #888;
      }
      .buttom-line {
        width: 100%;
        border-bottom: 1px solid #000;
      }
    }
  }
}
</style>
